import React from 'react';
import styles from './Wrapper.less';
import { Spin } from 'antd';
import Steps from './Steps';

export default ({ current, children, actions, loading }) => (
  <div className={styles.wrapper}>
    <h1>创建企业</h1>
    <Spin spinning={loading}>
      <div className={styles.content}>
        <Steps current={current} />
        <div className={styles.form}>{children}</div>
      </div>
      <div className={styles.actions}>{actions}</div>
    </Spin>
  </div>
);
